/**
 * @name        hookDark.ts
 * @author      shenyc
 * @date        2020-05-06 - ?
 * @copyright   Copy right (c) shenyc (shenyczz@163.com).
 *              All rights reserved.
 *
 ******************************************************************************/
// {{@@@}}
"use strict"
// ----------------------------------------------------------------------------
import { useToggle, useMouse, useDark, usePreferredDark } from "@vueuse/core"
// ----------------------------------------------------------------------------
/**
 * 暗黑模式钩子
 * @author shenyc
 */
export const hookDark = () => {
    const isDark = useDark()
    const toggleDark = useToggle(isDark)

    return { isDark, toggleDark }
}
export default hookDark
// ----------------------------------------------------------------------------
// {{@@@}}
